//
//  Target_VPLogin.m
//  VPLoginComponentForPod
//
//  Created by verne on 2016/12/29.
//  Copyright © 2016年 vernepung. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Target_VPLogin.h"
#import "VPLoginViewController.h"
#import "UIView+Additional.h"

@implementation Target_VPLogin
- (UIViewController *)Action_fetchLoginViewController:(NSDictionary *)params{
    //    @"username":userName,
    //    @"uLeftIcon":uLeftIcon,
    //    @"password":password,
    //    @"pLeftIcon":pLeftIcon,
    //    @"btnloginClicked":clickedBlock,
    //    @"images":images,
    //    @"titles":titles,
    //    @"commandBlock":commandBlock
    //    @"copyright":copyright
    //    @"copyrightFont":copyrightFont
    //    @"copyrightColor":copyrightColor
    VPLoginViewController *loginVC = [[VPLoginViewController alloc]init];
    loginVC.logoName = params[@"logo"];
    loginVC.oldUserName = params[@"username"];
    loginVC.userNameLeftIcon = params[@"uLeftIcon"];
    loginVC.oldPassword = params[@"password"];
    loginVC.passwordLeftIcon = params[@"pLeftIcon"];
    loginVC.showPasswordImageName = params[@"showPasswordImageName"];
    loginVC.hidePasswordImageName = params[@"hidePasswordImageName"];
    loginVC.loginButtonBackgroundColor = params[@"bgColor"];
    loginVC.btnLoginClickedBlock = params[@"btnloginClicked"];
    loginVC.commandTitles = params[@"titles"];
    loginVC.commandImages = params[@"images"];
    loginVC.executedCommandBlock = params[@"executedCommandBlock"];
    loginVC.copyright = params[@"copyright"];
    loginVC.copyrightLabelFont = params[@"copyrightFont"];
    loginVC.copyrightLabelTextColor = params[@"copyrightColor"];
    return loginVC;
}

@end
